home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / System 7.0 Samples / CShell⁄THINK C / TextEditControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-22  |  2.3 KB  |  64 lines  |  [TEXT/MPS ]

  1. #ifndef __TEXTEDITCONTROL__
  2. #define __TEXTEDITCONTROL__
  3.  
  4. #ifndef __TYPES__
  5. #include <types.h>
  6. #endif
  7.  
  8. #ifndef __TEXTEDIT__
  9. #include <TextEdit.h>
  10. #endif
  11.  
  12. #ifndef __WINDOWS__
  13. #include <Windows.h>
  14. #endif
  15.  
  16. pascal Boolean    AsmTEClikLoop(void);
  17. pascal void        AsmNoCaret(Rect *caretRect);
  18. void            CTEActivate(TEHandle teHndl);
  19. Boolean            CTEClick(EventRecord *event);
  20. void            CTEClikLoop(void);
  21. void            CTEClipboard(short menuID);
  22. pascal long        CTECtl(short varCode, ControlHandle ctl, short msg, long parm);
  23. void            CTEDeactivate(void);
  24. void            CTEDispose(TEHandle teHndl);
  25. TEHandle        CTEDisposeView(ControlHandle viewCtl);
  26. short            CTEDocHeight(TEHandle teHndl);
  27. Boolean            CTEEditMenu(Boolean *activeItem, short editMenu, short undoID, short cutID);
  28. Boolean            CTEEvent(EventRecord *event);
  29. Boolean            CTEFind(WindowPtr window, EventRecord *event, TEHandle *teHndl,
  30.                         ControlHandle *ctlHit);
  31. TEHandle        CTEFromScroll(ControlHandle scrollCtl, ControlHandle *retCtl);
  32. void            CTEHide(TEHandle teHndl);
  33. void            CTEIdle(void);
  34. Boolean            CTEKey(EventRecord *event);
  35. void            CTEMove(TEHandle teHndl, short newH, short newV);
  36. void            CTENew(short viewID, WindowPtr window, TEHandle *teHndl, Rect *dRect,
  37.                        Rect *vRect, Rect *bRect, short maxTextLen, short mode);
  38. void            CTENewUndo(ControlHandle viewCtl, Boolean alwaysNewUndo);
  39. ControlHandle    CTENext(WindowPtr window, TEHandle *teHndl, ControlHandle ctl);
  40. short            CTENumTextLines(TEHandle teHndl);
  41. short            CTENumViewLines(TEHandle teHndl);
  42. OSErr            CTEPrint(TEHandle teHndl, short *offset, Rect *rct);
  43. Boolean            CTEReadOnly(TEHandle teHndl);
  44. ControlHandle    CTEScrollFromTE(TEHandle teHndl, Boolean vertScroll);
  45. ControlHandle    CTEScrollFromView(ControlHandle viewCtl, Boolean vertScroll);
  46. void            CTESetSelect(short start, short end, TEHandle teHndl);
  47. void            CTEShow(TEHandle teHndl);
  48. void            CTESize(TEHandle teHndl, short dx, short dy);
  49. Handle            CTESwapText(TEHandle teHndl, Handle newText, Boolean update);
  50. WindowPtr        CTETargetInfo(TEHandle *teHndl, Rect *teView);
  51. void            CTEUndo(void);
  52. void            CTEUpdate(TEHandle teHndl, ControlHandle ctl);
  53. ControlHandle    CTEViewFromTE(TEHandle teHndl);
  54. void            CTEWindActivate(WindowPtr window, Boolean activate);
  55.  
  56. #define cteReadWrite        0
  57. #define cteReadOnly            1
  58. #define cteHScroll            2
  59. #define cteHScrollAndGrow    6
  60. #define cteVScroll            8
  61. #define cteVScrollAndGrow    24
  62.  
  63. #endif __TEXTEDITCONTROL__
  64.